<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectBiddingTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('project_bidding', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();
			//用户ID
			$table->integer('uid');
			//需判断是否超过140个字
			$table->text('description');
			//项目ID
			$table->integer('project_id');
			// 是否被选中
			$table->integer('is_chosen');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('project_bidding');
	}

}
